<?php


namespace app\admin\controller;

use app\admin\service\CommonService;
use app\common\controller\BaseAdmin;
use think\response\Json;
use think\facade\Config;

class Images extends BaseAdmin
{

    /**
     * 店铺列表
    **/
    public function index()
    {
        $dir = 'E:\phpstudy_pro\WWW\tp6test\public\storage';

        $service = new  CommonService();
        $files = $service->my_dir($dir);
//        $files = $this->getTreeOrder($files);
        dump($files);die;

        return $this->fetch();
    }
}